package guoanmaker.provider.business.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import guoanmaker.provider.business.repository.ProvideCommodityServiceRangeRepository;

@Service
public class ProvideCommodityServiceRange implements ProvideCommodityServiceRangeServiceInterface{
	
	@Autowired
	private ProvideCommodityServiceRangeRepository serviceRangeRepository;

	/**
	 * 根据主键删除商品服务区域
	 * @param id 商品服务表主键
	 * @return 
	 * */
	@Override
	public boolean deleteCommodityServiceRange(String id) {
		boolean bool=true;
		try {
			serviceRangeRepository.delete(id);
		} catch (Exception e) {
			bool=false;
		}
		return bool;
	}
}
